package com.xpjhs.common.util;

import javax.servlet.http.HttpServletRequest;

import com.xpjhs.user.model.User;



/**
 * 获取用户信息
 * 
 * @author guohuijun
 * @createDate 2014年8月8日 下午4:14:17 @ QQ: 263235040
 */
public class UserSessionManager {

	public static User getUserFromSession(HttpServletRequest request) {
		if (request == null) {
			System.out.println("Request不能正常获取");
		}
		User user = (User) request.getSession().getAttribute("user");
		return user;
	}
}
